﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GenIX.StyleSpace;

namespace GenIX
{
    public partial class NewCombo : Form
    {
        public NewCombo()
        {
            InitializeComponent();
            Styleform.SelectElement(this, Styleform.choseStyleName);
        }

        private void NewCombo_Load(object sender, EventArgs e)
        {
           
        
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            InItems it = this.Owner as InItems;
            if (textBox1.Text.Trim() != "")
            {
                string name = textBox1.Text.Trim();
                it.AddList(name);
                 this.Close();
            }
            else
            {
                MessageBox.Show("Имя списка не может быть пустым", "Предупреждение !", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
    }
}
